import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue'),
    },
    {
      path: '/demo1View',
      component:() => import('@/views/Demo1View.vue'),
    },
    {
      path:'/wangView',
      component:()=> import('@/views/WangView.vue'),
    },
    {
      path:'/demo3View',
      component:()=> import('@/views/Demo3View.vue')
    },
    {
      path:'/demo4View',
      component:()=> import('@/views/Demo4View.vue')
    },
    {
      path:'/caoView',
      component:()=>import('@/views/CaoView.vue')
    },
    {
          path:'/biView',
          component:()=>import('@/views/biView.vue')
    },
    {
      path:'/loginView',
      component:()=>import('@/views/LoginView.vue')

    },
    {
      path:'/memberLevel',
      component:( )=>import('@/views/member/MemberLevel.vue')

    },
    {
       path:'/menberLeveList',
       component:()=>import('@/views/member/MenberLevelList.vue')
    },
    {
      path:'/menber',
      component:()=>import('@/views/member/Menber.vue')
   },
   {
    path:'/menberList',
    component:()=>import('@/views/member/MenberList.vue')
 },
 {
    path:'/menberUpdate',
    component:()=>import('@/views/member/MenberUpdate.vue')
 },
      {
        path:'/shopAdd',
        component:()=>import('@/views/shop/ShopAdd.vue')
      },
      {
        path:'/shopList',
        component:()=>import('@/views/shop/ShopList.vue')
      },
      {
        path:'/shopUpdate',
        component:()=>import('@/views/shop/ShopUpdate.vue')
      },
      {
        path:'/disCountAdd',
        component:()=>import('@/views/DisCount/DisCountAdd.vue')
      },
      {
        path:'/houseAdd',
        component:()=>import('@/views/House/HouseAdd.vue')
      },
      {
        path:'/houseList',
        component:()=>import('@/views/House/HouseList.vue')
      },
      {
          path:'/houseNoAdd',
          component:()=>import("@/views/House/HouseNoAdd.vue")
      },
      {
          path:'/houseNoList',
          component:()=>import('@/views/House/HouseNoList.vue')
      }

  ],
})

export default router
